﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BLL;
using IFactory;
public partial class QuarterPlan_QuarterPlanForDetail : System.Web.UI.Page
{
    Authentication dllAuthentication = new Authentication();
    protected void Page_Load(object sender, EventArgs e)
    {
        dllAuthentication.isLogin();
        if (!IsPostBack)
        {
            Bind();
        }
    }

    void Bind()
    {
        object[] _value = new object[1];
        _value[0] = Utility.HttpHelp.getParamsString("_quarterResolvePlanId");
        BLL.QuarterPlanDetailManager dllQuarterPlanDetailManager = new QuarterPlanDetailManager();
        DataTable dt = dllQuarterPlanDetailManager.get(QuarterPlanDetailManager.field.QuarterPlanId.ToString(), _value);
        if (dt.Rows.Count > 0)
        {
            this.gdvQuarterResolve.DataSource = dt;
            this.gdvQuarterResolve.DataBind();
        }
        else
        {
            this.gdvQuarterResolve.Visible = false;
            this.ltip.Text = "无分解计划";
        }
        
    }
   
}
